﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Resources;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace SQL_EG.ui
{
    public partial class MasterForm : Form
    {
        uc.ucFirstStep ucFirst = new uc.ucFirstStep();
 
        public MasterForm()
        {
            InitializeComponent();
        }

        private void MasterForm_Load(object sender, EventArgs e)
        {
            LoadWindowsTitle();
            ucFirst = new uc.ucFirstStep();
            AddUserControl(ucFirst);
            this.Width = ucFirst.Width + 12;
            this.Height = ucFirst.Height + 35;

            
        }
        private  void AddUserControl(UserControl uc)
        {
            this.Controls.Clear();
            this.Controls.Add(uc);
           
        }

        

        void LoadWindowsTitle()
        {
            this.Text = ConfigurationManager.AppSettings["versionName"] + @"  " +
                        ConfigurationManager.AppSettings["versionNumber"];
        }


    }
}
